package connectfour;

import java.util.Random;

public class Opponent {
	
	private static Grid grid;
	private int counter = 0;
	//constructor
	public Opponent (){
	}

	public void NextMove(Grid grid){

		// Opponent has yellow token
		Risk risk = new Risk();
		
		if (risk.getRisk(grid)) Opponent.reactRisk(Risk.getReaction());
		else Risk.noRisk(grid);
		
		
		
		for (int i=0; i<7; i++){
			for (int j=0; j<6; j++){
				if (grid.getContent(j, i) == 1){
					counter++;
					Opponent.checkOrizzontalRisk(i,j,grid,counter);
				}
			}
		}
		
		
	}
	
	
	
}
